import request from '@/utils/request'

// ! 首页数据
export function indexData () {
  return request({
    method: 'GET',
    url: '/index/index'
  })
}

// ! 热门推荐
export function hotRecommend () {
  return request({
    method: 'GET',
    url: '/index/hot'
  })
}

// ! 最近更新
export function nowNews (obj) {
  return request({
    method: 'GET',
    url: '/index/new',
    params: {
      page: obj.page,
      limit: obj.limit
    }
  })
}
